Package com.cisco.pt.ipc.sim.pdu.impl
Class IPV6HeaderImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
com.cisco.pt.ipc.sim.pdu.impl.IPV6HeaderImpl
- All Implemented Interfaces:
IPCData,Header,IPV6Header,Pdu,Signal
- Direct Known Subclasses:
IPV6FragmentExtensionHeaderImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IPV6Addressprotected Byteprotected Shortprotected Shortprotected Byteprotected Shortprotected IPV6NextHeaderprotected intprotected intprotected Shortprotected IPV6Addressprotected Shortprotected Byteprotected ByteFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
payloadFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) getFlags()intintvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetDestinationAddress(IPV6Address destinationAddress) voidvoidsetFragmentOffset(Short fragmentOffset) voidsetHeaderChecksum(Short headerChecksum) voidsetHeaderLength(Byte headerLength) voidsetIdentification(Short identification) voidsetNextHeader(IPV6NextHeader nextHeader) voidsetOptions(int options) voidsetPadding(int padding) voidsetProtocol(Short protocol) voidsetSourceAddress(IPV6Address sourceAddress) voidsetTotalLength(Short totalLength) voidsetTypeOfService(Byte typeOfService) voidsetVersion(Byte version) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
getPayload, setPayloadMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Header
getPayload, setPayloadMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
nextHeader
-
version
-
headerLength
-
typeOfService
-
totalLength
-
identification
-
flags
-
fragmentOffset
-
protocol
-
headerChecksum
-
options
protected int options -
padding
protected int padding -
sourceAddress
-
destinationAddress
-
-
Constructor Details
-
IPV6HeaderImpl
public IPV6HeaderImpl()
-
-
Method Details
-
getNextHeader
- Specified by:
getNextHeaderin interfaceIPV6Header- Returns:
- IPV6NextHeader Returns a IPV6NextHeader
-
setNextHeader
- Specified by:
setNextHeaderin interfaceIPV6Header- Parameters:
nextHeader- Takes in a parameter of nextHeader
-
getVersion
- Specified by:
getVersionin interfaceIPV6Header- Returns:
- Byte Returns a Byte
-
setVersion
- Specified by:
setVersionin interfaceIPV6Header- Parameters:
version- Takes in a parameter of version
-
getHeaderLength
- Specified by:
getHeaderLengthin interfaceIPV6Header- Returns:
- Byte Returns a Byte
-
setHeaderLength
- Specified by:
setHeaderLengthin interfaceIPV6Header- Parameters:
headerLength- Takes in a parameter of headerLength
-
getTypeOfService
- Specified by:
getTypeOfServicein interfaceIPV6Header- Returns:
- Byte Returns a Byte
-
setTypeOfService
- Specified by:
setTypeOfServicein interfaceIPV6Header- Parameters:
typeOfService- Takes in a parameter of typeOfService
-
getTotalLength
- Specified by:
getTotalLengthin interfaceIPV6Header- Returns:
- Short Returns a Short
-
setTotalLength
- Specified by:
setTotalLengthin interfaceIPV6Header- Parameters:
totalLength- Takes in a parameter of totalLength
-
getIdentification
- Specified by:
getIdentificationin interfaceIPV6Header- Returns:
- Short Returns a Short
-
setIdentification
- Specified by:
setIdentificationin interfaceIPV6Header- Parameters:
identification- Takes in a parameter of identification
-
getFlags
- Specified by:
getFlagsin interfaceIPV6Header- Returns:
- Byte Returns a Byte
-
setFlags
- Specified by:
setFlagsin interfaceIPV6Header- Parameters:
flags- Takes in a parameter of flags
-
getFragmentOffset
- Specified by:
getFragmentOffsetin interfaceIPV6Header- Returns:
- Short Returns a Short
-
setFragmentOffset
- Specified by:
setFragmentOffsetin interfaceIPV6Header- Parameters:
fragmentOffset- Takes in a parameter of fragmentOffset
-
getProtocol
- Specified by:
getProtocolin interfaceIPV6Header- Returns:
- Short Returns a Short
-
setProtocol
- Specified by:
setProtocolin interfaceIPV6Header- Parameters:
protocol- Takes in a parameter of protocol
-
getHeaderChecksum
- Specified by:
getHeaderChecksumin interfaceIPV6Header- Returns:
- Short Returns a Short
-
setHeaderChecksum
- Specified by:
setHeaderChecksumin interfaceIPV6Header- Parameters:
headerChecksum- Takes in a parameter of headerChecksum
-
getOptions
public int getOptions()- Specified by:
getOptionsin interfaceIPV6Header- Returns:
- int Returns a int
-
setOptions
public void setOptions(int options) - Specified by:
setOptionsin interfaceIPV6Header- Parameters:
options- Takes in a parameter of options
-
getPadding
public int getPadding()- Specified by:
getPaddingin interfaceIPV6Header- Returns:
- int Returns a int
-
setPadding
public void setPadding(int padding) - Specified by:
setPaddingin interfaceIPV6Header- Parameters:
padding- Takes in a parameter of padding
-
getSourceAddress
- Specified by:
getSourceAddressin interfaceIPV6Header- Returns:
- IPV6Address Returns a IPV6Address
-
setSourceAddress
- Specified by:
setSourceAddressin interfaceIPV6Header- Parameters:
sourceAddress- Takes in a parameter of sourceAddress
-
getDestinationAddress
- Specified by:
getDestinationAddressin interfaceIPV6Header- Returns:
- IPV6Address Returns a IPV6Address
-
setDestinationAddress
- Specified by:
setDestinationAddressin interfaceIPV6Header- Parameters:
destinationAddress- Takes in a parameter of destinationAddress
-
getFieldType
- Overrides:
getFieldTypein classHeaderImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classHeaderImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classHeaderImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classHeaderImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classHeaderImpl
-